
import Axios from 'axios';
import apis from '../../http/apis/apis';
export default {

    // namespaced: true,
    namespaced: "parkings",
    state: {
        // 接收车位列表数据
        ParkinData: {
        },
    },
    mutations: {
    },
    actions: {
        // 获取车位列表数据
        async getParkinData(context, searchAndSize) {
            // console.log(22222, searchAndSize.lessorsId);
            const { data } = await apis.lessorsParkings.getParkinData(searchAndSize)
            // console.log(data);
            if (data.status) {
                context.state.ParkinData = data
            }
        },

    },
}